package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/3/17 16:47
 */
public class TestOperatorLogicOr {
    public static void main(String[] args) {

        System.out.println(true || true);//true
        System.out.println(true || false);//true
        System.out.println(false || true);//true
        System.out.println(false || false);//false

        int a = 10;
        int b = 3;
        //测试短路
        System.out.println( a > b || a++ == b);//true
        System.out.println(a);//10


        System.out.println(a < b || a++ > b++);//true
        System.out.println(a);// 11
        System.out.println(b);//  4

    }
}
